<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
    int mid = Integer.parseInt(request.getParameter("mid"));
    int fid = Integer.parseInt(request.getParameter("fid"));
    request.setCharacterEncoding("UTF-8");
    FloorDAO dao = new FloorDAO();
    boolean result = dao.changeFloor(mid, fid);
    if(result){
       Floor floor = dao.queryFloor(fid);
       out.write("修改楼层"+ floor.getFname() +"成功");
       Action action = new Action();
       action.setActionIp(request.getRemoteHost());
       action.getMember().setMid(mid);
       action.setAname("changeFloor");
       new ActionDAO().saveAction(action);
    }else{
       out.write("没有这个成员或者楼层");
    }
%>
